import envCfg from '@/env'
const getServer = (type) => {
  return `/api/${type}`
}
const BASE = {
  /**
   * @description api请求基础路径
   */
  API: {
    common: getServer('common'),
    buyer: getServer('buyer'),
    seller: getServer('seller'),
    manager: getServer('manager')
  },
  PREFIX: "/manager"
};
export const getServicePath = (type)=>{
    if(type) {
        return `${envCfg.apiUrl}/api/${type}`
    }else{
        return `${envCfg.apiUrl}/api/${type}`
    }
}

export const getUploadPath = ()=>{
    return getServicePath('common')+`/common/common/upload/file`
}